package com.dgut.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dgut.pojo.Account;
import com.dgut.pojo.UserInfo;

public interface AccountService extends IService<Account> {
    //当isLocked!=-1时，根据锁定条件查出所用账号
    public Page<Account> getAccountWithUserInfo(Page<Account> page, int isLocked,String order);
    public void updateIsLocked(int accountId,int isLocked) throws Exception;
    //注册账号
    public void addAccount(Account account, UserInfo userInfo) throws Exception;
}
